//
//  AENewsCommentsRequest.m
//  AESOLAR_IOS
//
//  Created by Bin Tang on 2024/10/28.
//  Copyright © 2024 Mr.Wang. All rights reserved.
//

#import "AENewsCommentsRequest.h"
#import "AE_Solar-Swift.h"

@interface AENewsCommentsRequest ()
@property (nonatomic, assign) NSInteger newId;
@end

@implementation AENewsCommentsRequest

/// 初始化
/// - Parameter newId: 新闻id
- (instancetype)initWithNewId:(NSInteger)newId {
    if (self = [super init]) {
        self.newId = newId;
    }
    return self;
}

- (NSString *)requestUrl {
    return kAPP_NEWS_COMMENTS;
}

- (TYZRequestMethod)requestMethod {
    return TYZRequestMethodPOST;
}

- (id)requestArgument {
    NSDictionary *params = @{@"newId":@(self.newId)};
    NSString *json = [params yy_modelToJSONString];
    NSString *aesStr = [AESCrypt AES128Encrypt:json key:[AEUserCommonInfo getAesKey]];
    return @{@"requestData": aesStr};
}

- (Class)rspClass {
    return [AENewsCommentsModel class];
}


@end
